var app = new Vue({
    el: "#app",
    data: {
        username: "",
        password: ""
    },
    methods: {
        login: function () {
            //alert("error")
            let that = this
            let url = "http://kunvm1.ap.health.ge.com:8089/verify"
            let data = Qs.stringify({ "username": this.username, "password": this.password })
            axios.post(url, data).then(
                (response) => {
                    //console.log(response.data)
                    if (response.data == "pass") {
                        window.location.replace('http://kunvm1.ap.health.ge.com:8089/debug')
                        //window.location = 'http://kunvm1.ap.health.ge.com:8089/debug'
                    } else {
                        alert("Login failed ~ \nAsk username and password: \nPlease ping SSO: 503247565")
                    }
                },
                (err) => { console.log(err) }
            )
        }
    }
})